widget_total = 0
widget_current = 0
widget_draging_id = 0
#widget_drag
widget_init = 1

func.widget = {}

func.widget.offset = (selector) ->
    f = $(selector).offset()
    console.log(f)
    return

func.widget.noticeChange = (style,text) ->
    html = '<div id="" class="alert alert-'+style+' alert-dismissable">'
    html+='<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>'
    html+=text
    html+='</div>'

    $('#profile_notice').html html

    $('.alert-'+style).css
        'background-image':'none'
        'padding-top':'10px'
        'padding-bottom':'10px'

    $('#profile_notice').fadeIn 'slow', ->
        setTimeout ->
            $('#profile_notice').fadeOut()
            return
        , 1500
        return
    return